package cn.tedu.mall.seckill.mapper;

import cn.tedu.mall.pojo.seckill.model.SeckillSku;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SeckillSkuMapper {
    //根据SpuId查询Sku列表
    List<SeckillSku> findSeckillSkuBySpuId(Long spuId);

    //根据skuId减少指定库存数
    int updateReduceStockBySkuId(@Param("skuId") Long skuId,@Param("quantity") Integer quantity);

























}
